package com.calarea;

/**
 * Time    : 2023/3/20 21:37
 * Author  : 王摇摆
 * FileName: Triangle.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Triangle extends Shape {
    private int height;
    private int length;
    private int name;

    @Override
    public double claArea() {
        return 0.5 * height * length;
    }

    public String print(String name, double result) {
        return super.print(name, result);
    }
}
